package homework.homework03;

public class Manager extends Coder{
    private double bonus;//奖金
    //有参构造

    public Manager(String name, String id, double sal, double bonus) {
        super(name, id, sal);
        this.bonus = bonus;
    }
    //无参构造
    public Manager(){}

    //get and set
    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
    public void work(){
        System.out.println("工号为"+getId()+"基本工资为"+getSal()+
                "奖金为"+bonus+"的项目经理正在努力的做着管理工作，分配工作，检查员工提交上来的代码");
    }
}
